#pragma once

#include <QActionGroup>
#include <QLabel>
#include <QMainWindow>
#include "Game.h"
#include "GameBoard.h"

namespace Ui {
    class MainWindow;
}

// 主窗口
class MainWindow: public QMainWindow {
    Q_OBJECT

    private: Ui::MainWindow* ui;                // 界面
    private: GameBoard mGameBoard;              // 游戏区域
    private: Game mGame;                        // 游戏
    private: QActionGroup mMenuSetBorder;       // 设置边框菜单
    private: QActionGroup mMenuSetDifficulty;   // 设置难度菜单

    public: explicit MainWindow(QWidget* parent = nullptr);
    public: ~MainWindow();
    private slots: void on_actionSetBorder_triggered(QAction*);
    private slots: void on_actionSetDifficulty_triggered(QAction*);
    private slots: void on_actionSetPicture_triggered();
    private slots: void on_actionStart_triggered();
    private slots: void onGameOver();
    private slots: void onPictureCtrlClick(QWidget*);
};
